package run.leven.notice.starter.mq;

import com.rabbitmq.client.ConfirmCallback;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.rabbit.core.RabbitTemplate;

/**
 * @author leven
 * @date 2020/3/16 23:29
 */
@Slf4j
public class ConfirmCallBackListener implements RabbitTemplate.ConfirmCallback {

    @Override
    public void confirm(CorrelationData correlationData, boolean ack, String cause) {
        log.debug("confirm--:correlationData:" + correlationData + ",ack:" + ack + ",cause:" + cause);
    }
}
